importing class and its function from another file [Python]

Posted by user343934 on Stack Overflow See other posts from Stack Overflow or by user343934
Published on 2010-06-01T10:38:03Z Indexed on 2010/06/01 10:43 UTC
Read the original article Hit count: 138

Filed under:
|

Hi everyone,

I am having little bit problem in importing classes in python. My work flow goes like this

-index.py

---class template:

------def header():

------def body():

------def footer():

-display.py

I want to call function header(), body() and footer () in my display.py page. Will anyone make me clear about this issue in python. Thanks for your concern.

© Stack Overflow or respective owner

Related posts about python

Related posts about class